import request from '@/utils/request'

// 查询捕捞记录列表
export function listPlRecord(query) {
  return request({
    url: '/busi/plRecord/list',
    method: 'get',
    params: query
  })
}

// 查询捕捞记录详细
export function getPlRecord(id) {
  return request({
    url: '/busi/plRecord/' + id,
    method: 'get'
  })
}

// 新增捕捞记录
export function addPlRecord(data) {
  return request({
    url: '/busi/plRecord',
    method: 'post',
    data: data
  })
}

// 修改捕捞记录
export function updatePlRecord(data) {
  return request({
    url: '/busi/plRecord',
    method: 'put',
    data: data
  })
}

// 删除捕捞记录
export function delPlRecord(id) {
  return request({
    url: '/busi/plRecord/' + id,
    method: 'delete'
  })
}

// 导出捕捞记录
export function exportPlRecord(query) {
  return request({
    url: '/busi/plRecord/export',
    method: 'get',
    params: query
  })
}